package com.testing.class10;

import com.testing.class9.Animal;

/**
 * @Classname Feeder
 * @Description 类型说明
 * @Date 2021/5/7 20:28
 * @Created by 特斯汀Roy
 */
public class Feeder {

    //喂养一只动物
    public void feedAnimal(Animal animal){
        System.out.println("铲屎官正在给"+animal.kind+"喂食");
        animal.eating();
        animal.giveBirth("开心");
    }

}
